QT+= core gui network opengl widgets
LIBS += -lopengl32
LIBS += -ldbghelp

TARGET = ball
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS

CONFIG += c++17

DEFINES += WIN32_LEAN_AND_MEAN
win32: LIBS += -L$$PWD/libmodbus/lib/ -lmodbus
INCLUDEPATH += $$PWD/libmodbus/include


SOURCES += \
    camera_hk.cpp \
    camera_qdialog.cpp \
    commonfunction.cpp \
    function.cpp \
    halcon_opencv.cpp \
    login_dialog.cpp \
        main.cpp \
    mainwindow.cpp \
    qt_hread_process.cpp \
    save_image.cpp \
    sha.cpp \
    show_qlabel.cpp

HEADERS += \
    camera_hk.h \
    camera_qdialog.h \
    commonfunction.h \
    function.h \
    halcon_opencv.h \
    list_message.h \
    login_dialog.h \
        mainwindow.h \
    qt_graphics_shape_circle_rectangle.h \
    qt_graphics_view.h \
    qt_graphis_pixmap.h \
    qt_hread_process.h \
    recipe_dialog.h \
    save_image.h \
    sha.h \
    show_qlabel.h



target.path = $$[QT_INSTALL_EXAMPLES]/sql/cachedtable
target.path = $$[QT_INSTALL_EXAMPLES]/charts/stackedbarchart

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


INCLUDEPATH   += "opencv/build/include"
CONFIG(debug, debug|release){
LIBS += "opencv/build/x64/vc16/lib/opencv_world470d.lib"
}else{
LIBS += "opencv/build/x64/vc16/lib/opencv_world470.lib"
}


INCLUDEPATH   += "hk/include"
LIBS          += "hk/lib/MvCameraControl.lib"



RC_ICONS = logo.ico

INCLUDEPATH   += "halcon/include"
INCLUDEPATH   += "halcon/include/halconcpp"
LIBS          += "halcon/lib/halconcppxl.lib"


DISTFILES += \
    ball.vcxproj.user

